//
//  Settings_TableVC.h
//  KaChing_App
//
//  Created by Jordan Robert Yust on 2/20/09.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "AddNewProfile_VC.h"
#import "UserAttr_TableVC.h"
#import "UpdateProfile_VC.h"

@interface Settings_TableVC : UIViewController <UITableViewDataSource, UITableViewDelegate,
													UIActionSheetDelegate, 
													UIAlertViewDelegate >
{
	NSMutableDictionary *userDictionary;	// The Dictionary containing all the user profiles
	AddNewProfile_VC *newProfile_VC;		// The view controller for adding a new profile
	
	UserAttr_TableVC *user_TableVC;			// The view controller for viewing a profile
	UpdateProfile_VC *updateProfile_VC;		// The view controller for editing a profile
	
	UIActionSheet *profileOptions_ActionSheet;	// ActionSheet displaying options for selecting a profile

	NSString *selectedProfile_ProfileName;	// The selected profile's profile name as a String
	NSString *selectedProfile_UserID;		// The selected profile's user ID as a String
	NSString *selectedProfile_RemoteKey;	// The selected profile's remote key as a String
	
	UIAlertView *deleteProfile_AlertView;	// AlertView for deleting the selected profile
	
	IBOutlet UITableView *userTableView;
	
}

/*** PROPERTIES ***/
@property(nonatomic, retain) NSMutableDictionary *userDictionary;
@property(nonatomic, retain) AddNewProfile_VC *newProfile_VC;
@property(nonatomic, retain) UserAttr_TableVC *user_TableVC;
@property(nonatomic, retain) UpdateProfile_VC *updateProfile_VC;
@property(nonatomic, retain) UIActionSheet *profileOptions_ActionSheet;
@property(nonatomic, retain) NSString *selectedProfile_ProfileName;
@property(nonatomic, retain) NSString *selectedProfile_UserID;
@property(nonatomic, retain) NSString *selectedProfile_RemoteKey;
@property(nonatomic, retain) UIAlertView *deleteProfile_AlertView;
@property(nonatomic, retain) UITableView *userTableView;

/*** METHODS ***/
- (IBAction) addNewProfile:(id) sender;
- (void) selectProfile;
- (void) editProfile;
- (void) deleteProfile;

@end
